#include "fxcc/yml/Serializer.h"
#include "fxcc/core/graph/common/PositionKey.h"

using namespace fxcc::yml;
using CType = fxcc::graph::common::PositionKey;;

template<>
void Serializer::Encode<CType>(YAML::Node& node, const CType& inst)
{
	SetVariable<double>(node, "m_Time", inst.m_Time);
	SetVariable<glm::vec3>(node, "m_Value", inst.m_Value);
}


template<>
bool Serializer::Decode<CType>(const YAML::Node& node, CType& inst)
{
	GetVariable<double>(node, "m_Time", inst.m_Time);
	GetVariable<glm::vec3>(node, "m_Value", inst.m_Value);
	return true;
}

